<?php

namespace app\api\validate;

use think\Validate;

class RegisterValidate extends Validate
{
    protected $rule = [
        'old_password' => 'require',
        'password' => 'require|confirm:repassword',
    ];

    protected $message = [
        'old_password.require' => '旧密码不能为空',
        'password.require' => '密码不能为空',
        'password.confirm' => '两次密码输入不一致',
    ];
}